package com.backapp.app;

import android.content.*;
import android.content.pm.*;

public class AppDetails
{
	private String mName;
	private String mDataDir;
	private String mApkSource;
	private String mPackageName;
	
	public 
	AppDetails(
		ActivityInfo activityInfo,
		Context context
		)
	{
		mDataDir = activityInfo.applicationInfo.dataDir;
		mApkSource = activityInfo.applicationInfo.sourceDir;
		mName = activityInfo.loadLabel(context.getPackageManager()).toString();
		mPackageName = activityInfo.applicationInfo.packageName;
	}
	
	public String
	getName()
	{
		return mName;
	}
	
	public String 
	getDataDir()
	{
		return mDataDir;
	}
	
	public String 
	getPackagaeName()
	{
		return mPackageName; 
	}
	
	public String
	getApkSource()
	{
		return mApkSource;
	}
}
